<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/7/13
  Time: 14:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../css/home.css">
    <!--    jquery.js一定要写在其他js之前-->
    <%--    <script src="../js/jquery-3.6.0.min.js"></script>--%>
    <%--    <script src="../js/common.js"></script>--%>
    <!--    <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>-->
</head>
<%--jsp目的就是为了简写js，jsp是属于Java  替换js--%>
<!--如果要拿到body  肯定需要css    样式   布局  选择器-->
<!--所有的图片和文字不能单独存在，必须包含在div里面
div 块级元素
明明規則：见名知意
ctrl+tab
---为什么要分开？
面向对象原则？
将不同的代码分开？
-->
<body class="common">
<div class="content">
    <!-- 头部   -->
    <%--    <div id="top">--%>

    <%--    </div>--%>
    <jsp:include page="top.jsp"></jsp:include>
    <!--  中间部分 -->
    <div class="middle">
        <div>
            <div>
                <div class="title">较新动态</div>
                <div>
                    <div><img src="../img/m331.jpg" height="190" width="268"/></div>
                    <div>
                        <c:forEach items="${newsModels}" var="model">
                            <div>
                                <div class="single-line-overflow">${model.title}
                                </div>
                                <div class="single-line-overflow">${model.content}</div>
                            </div>
                        </c:forEach>

                    </div>
                </div>
            </div>
            <div>
                <div class="title">产品展示</div>
                <div>
                    <div>
                        <div><img src="../img/46_mkua.jpg" height="300" width="300"/></div>
                        <div>
                            <div class="single-line-overflow">上品青菜上品青菜上品青菜上品青菜上品青菜</div>
                            <div class="single-line-overflow">上品青菜上品青菜上品青菜上品青菜上品青菜上品青菜上品青菜</div>
                        </div>
                    </div>
                    <div>
                        <div><img src="../img/46_mkua.jpg" height="300" width="300"/></div>
                        <div>
                            <div class="single-line-overflow">上品青菜</div>
                            <div class="single-line-overflow">上品青菜上品青菜上品青菜上品青菜上品青菜上品青菜上品青菜</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--   底部  -->
    <jsp:include page="foot.jsp"></jsp:include>

</div>
</body>
</html>
